package com.liming.utils;

import java.util.Enumeration;
import java.util.UUID;

import javax.servlet.http.HttpServletRequest;

public class WebUtils {
   
	public static <T> T request2Bean(HttpServletRequest request,Class<T> beanClass){
		try {
			T bean=beanClass.newInstance();
			Enumeration e=request.getParameterNames();
			while(e.hasMoreElements()){
				String name=(String)e.nextElement();
				String vlaue=request.getParameter(name);
				
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		
		
		return null;
	}
	public String getUUID(){
		return UUID.randomUUID().toString();
	}
}
